<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理 -- Talking</title>
<link rel="stylesheet" href="./static/css/frame.css" />
</head>

<body>
<div id="content">
	<div class="title">全局 » 邮件设置</div>
	<div class="main">
		<h3>邮件设置</h3>
		<fieldset>
        <form action="mail.php" method="post" name="form">
            <input type="hidden" name="action" value="update" />
			<p>
				<label>发送方式:</label>
				通过 SOCKET 连接 SMTP 服务器发送
				&nbsp;&nbsp;&nbsp;
				<span>系统暂时只支持该方法发送邮件</span>
			</p>
			<p>
				<label>SMTP 服务器:</label>
				<input type="text" class="text-long" name="smtpServer" value="{{$smtpServer}}" />
				<span>	设置 SMTP 服务器的地址</span>
			</p>
			<p>
				<label>SMTP 端口:</label>
				<input type="text" class="text-long" name="smtpPort" value="{{$smtpPort}}" />
				<span>设置 SMTP 服务器的端口，默认为 25</span>
			</p>
			<p>
				<label>SMTP 服务器要求身份验证:</label>
				<input type="radio" name="smtpApprove" value="y" {{if $smtpApprove eq 'y'}} checked {{/if}}  />是
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="radio" name="smtpApprove" value="n" {{if $smtpApprove eq 'n'}} checked {{/if}}  />否
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<span>如果 SMTP 服务器要求身份验证才可以发信，请选择“是”</span>
			</p>
			<p>
				<label>发信人邮件地址:</label>
				<input type="text" class="text-long" name="smtpFrom" value="{{$smtpFrom}}" />
				<span>邮件地址中如果要包含用户名，格式为“username &lt;user@domain.com&gt;”</span>
			</p>
			<p>
				<label>SMTP 身份验证用户名:</label>
				<input type="text" class="text-long" name="smtpUser" value="{{$smtpUser}}" />
			</p>
			<p>
				<label>SMTP 身份验证密码:</label>
				<input type="text" class="text-long" name="smtpPass" value="{{$smtpPass}}" />
			</p>
			<p>
				<input type="submit" class="button_submit" value="提交" name="submit" />
                <span>{{$tip}}</span>
			</p>
        </form>
		</fieldset>
        
        
		<h3>邮件检测</h3>
		<fieldset>
        <form action="mail.php" method="post" name="form">
            <input type="hidden" name="action" value="send" />
			<p>
				<label>收件人地址:</label>
				<input type="text" class="text-long" name="smtpTo" />
				<span>检测邮件是否发送成功</span>
			</p>
			<p>
				<input type="submit" class="button_submit" value="发送" name="submit" />
                <span>{{$tip2}}</span>
			</p>
        </form>
		</fieldset>
	</div>
</div>
</body>
</html>
